<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTeachingSignsTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('teaching_signs', function (Blueprint $table) {
//            $table->comment('教研活动签到表');
            $table->increments('id');
            $table->integer('activity_id')->comment('活动关联id');
            $table->string('user_id', 25)->default('用户id');
            $table->string('user_name', 50)->default('用户名称');
            $table->boolean('sign_status')->default(false)->comment('签到状态 0-未签到 1-已签到');
            $table->dateTime('sign_time')->nullable()->comment('签到时间');
            $table->boolean('status')->default(true)->comment('状态 0-删除 1-正常');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('teaching_signs');
    }
};
